import os

files = ["game",
         "startgame",
         "player",
         "monster",
         "room"]

for file in files:
    print "compiling %s.." % file
    os.system("javac %s.java" % file)
    print "finished compiling %s." % file
